/**
 * @author 橘柚
 * @Date 2023/11/11 15:45
 * @Description
 */
import {combineReducers} from "redux";
import layoutConfigReducer from "@/store/LayoutConfigSlice.ts";
import {ILayoutConfig} from "@/config/layout-config.ts";
import {IBreadcrumb, breadcrumbReducers} from "@/store/BreadcrumbSlice.ts";
import {userInfoReducers, IUserInfoReducer} from "@/store/UserInfoSlice.ts";

interface IRootReducer {
  layoutConfig: ILayoutConfig,
  breadcrumb: IBreadcrumb,
  userInfo: IUserInfoReducer
}

const rootReducer = combineReducers<IRootReducer>({
  layoutConfig: layoutConfigReducer,
  breadcrumb: breadcrumbReducers,
  userInfo: userInfoReducers
})

export default rootReducer